package com.ugoodtech.mdcc.web.service;

import com.ugoodtech.mdcc.core.domain.PerformanceReport;
import com.ugoodtech.mdcc.web.pojo.vo.PerformancePlanVO;
import com.ugoodtech.mdcc.web.utils.PageInfoWrapper;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author dean
 * @date 2020/6/17 14:06
 */
public interface PerformancePlanService {
    Boolean resolvePlanExcel(MultipartFile file);

    /**
     * 获取业绩报告可以查看的年份
     *
     * @return 年份列表
     */
    List<Integer> getYears();

    PageInfoWrapper getYearPlanPage(Integer year, String username, List<Integer> months,
                                    Integer pageIndex, Integer pageSize);

    PerformanceReport getPlan(Long reportId);

    PageInfoWrapper getMonthPlanPage(Integer year, String username, List<Integer> months,
                                     Integer pageIndex, Integer pageSize);

    List<PerformancePlanVO> getMonthPlan(Integer year, String username, List<Integer> months,
                                         Integer pageIndex, Integer pageSize);

    Workbook changeYear(Workbook workbook, Integer year);
}
